package com.jiwanqing.demo.controller;

import com.jiwanqing.demo.entity.Student;
import com.jiwanqing.demo.service.IStudentService;
import com.jiwanqing.demo.service.impl.StudentServiceImpl;

import java.util.List;

public class StudentController {
    private IStudentService iStudentService = new StudentServiceImpl();

    public Student ScoreRating(Student s){
        System.out.println("我要评级!");
        return iStudentService.scoreRating(s);
    }

    public List<Student> queryStudentInfoAll(){
        return iStudentService.queryStudentInfoAll();
    }

    public int addStudent(Student student){
        return iStudentService.addStudent(student);
    }



















}
